package state;
/**
 * 入住可以退房 
 * @author Jin
 *
 */
public class CheckInState implements State {

	 Room hotelManagement;  
	    public CheckInState(Room hotelManagement) {  
	        this.hotelManagement = hotelManagement;  
	    }  
	  
	    public void bookRoom() {  
	        System.out.println("该房间已经入住了...");  
	    }  
	  
	    public void checkInRoom() {  
	        System.out.println("该房间已经入住了...");  
	    }  
	  
	    public void checkOutRoom() {  
	        System.out.println("退房成功....");  
	        hotelManagement.setState(hotelManagement.getFreeTimeState());     //状态变成空闲  
	    }  
	  
	    public void unsubscribeRoom() {  
	        //不需要做操作  
	    }  
}
